package com.pai4j.domain.community.vo.response.cc;

import com.google.common.base.Joiner;
import lombok.Data;
import org.apache.commons.collections.CollectionUtils;

import java.util.List;

/**
 * @Author 程序员七七
 * @webSite https://www.coderutil.com
 * @Date 2022/12/18 03:21
 * @description
 */
@Data
public class CTCQuestionBaseVO {

    protected Long id;

    private Long pathId;

    private String title;

    private String description;

    private List<String> images;

    private String author;

    private Integer type;

    private Integer rewardIntegral;

    private Boolean top;

    private Long topTime;

    private Boolean recommend;

    private Long recommendTime;

    private List<String> signs;
    private String signStr;

    private Integer status;

    private Long createTime;

    private Boolean free;

    public String getSignStr() {
        if (CollectionUtils.isNotEmpty(signs)) {
            return Joiner.on(",").join(signs);
        }
        return "";
    }
}
